<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="http://baidu.com">
  <table border="1">
    <!--maxlength 最大字符长度
    value 设置默认值
    readonly 只读-->
    <tr>
      <td>用户名:</td>
      <td><input type="text" name="username" maxlength="5" value="abcdef" readonly></td><br>
    </tr>
    <tr>
      <td>密码:</td>
      <td><input type="password" name="password"></td><br>
    </tr>
    <!--value是单选框必须添加的属性,否则提交on
    checked默认选中-->
    <tr>
      <td>性别:</td>
      <td><input type="radio" name="gender" value="m" id="r1">
        <label for="r1">男</label>
        <input type="radio" name="gender" checked value="w" id="r2">
        <label for="r2">女</label></td>
    </tr>
    <tr>
      <td>兴趣爱好:</td>
      <td><input type="checkbox" name="hobby" value="cy">抽烟
        <input type="checkbox" name="hobby" checked value="hj">喝酒
        <input type="checkbox" name="hobby" checked value="tt">烫头</td>
    </tr>
    <tr>
      <td>生日：</td>
      <td><input type="date" name="birthday"></td>
    </tr>
    <tr>
      <td>靓照:</td>
      <td><input type="file" name="pic"></td>
    </tr>
    <!--在下拉框选中 value:设置提交的内容  selected: 默认选中-->
    <tr>
      <td>所在地:</td>
      <td><select name="city" >
        <option selected>山西</option>
        <option value="sd">山东</option>
        <option value="hb">河南</option>
        <option>河北</option>
      </select></td>
    </tr>
    <tr>
      <td colspan="2" align="center"><input type="submit" value="注册"></td>
    </tr>
  </table>
</form>
</body>
</html>